import request from '@/utils/request'

// 查询换胎申请列表
export function listServicerRquest(query) {
  return request({
    url: '/merchant/servicerRquest/list',
    method: 'get',
    params: query
  })
}

// 查询换胎申请详细
export function getServicerRquest(Id) {
  return request({
    url: '/merchant/servicerRquest/' + Id,
    method: 'get'
  })
}

// 新增换胎申请
export function addServicerRquest(data) {
  return request({
    url: '/merchant/servicerRquest',
    method: 'post',
    data: data
  })
}

// 修改换胎申请
export function updateServicerRquest(data) {
  return request({
    url: '/merchant/servicerRquest',
    method: 'put',
    data: data
  })
}

// 修改换胎申请
export function updateAuditServicerRquest(data) {
  return request({
    url: '/merchant/servicerRquest/audit',
    method: 'post',
    data: data
  })
}

// 删除换胎申请
export function delServicerRquest(Id) {
  return request({
    url: '/merchant/servicerRquest/' + Id,
    method: 'delete'
  })
}
